package com.example.springioc;

import com.example.springioc.Model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class UserController {
   /* public void userController(){
        System.out.println("userController start...");
    }*/
    @Qualifier("userInfo1")
    @Autowired
    private UserInfo user;

    public void start(){
        System.out.println(user);
    }

}
